package net.usys.dao;

import net.usys.entity.Member;

/**
 * Dao接口 - 会员
 * ============================================================================
 * ----------------------------------------------------------------------------
 * KEY: SHOPXX7DE6DBC156621DE89E663E0E451C2E85
 * ============================================================================
 */

public interface MemberDao extends BaseDao<Member, String> {
	
	/**
	 * 根据用户名判断此用户是否存在（不区分大小写）
	 * 
	 */
	public boolean isExistByUsername(String username);
	
	/**
	 * 根据用户名获取会员对象，若会员不存在，则返回null（不区分大小写）
	 * 
	 */
	public Member getMemberByUsername(String username);
	
	/**
	 * 批量更新会员状态
	 * @param ids 会员ID
	 * @param approveState 审核状态
	 */
	public void updateState(String[] ids,boolean approveState);
	
}